﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _48WPFMasterDetailBinding
{
    public class vmProducts
    {
        public ObservableCollection<Category> categories = new ObservableCollection<Category>();


        public vmProducts()
        {

            categories.Add(new Category("Antivirus",
                                        new Product(1, "Norton"),
                                        new Product(2, "Kaspersky"),
                                        new Product(3, "AVG")));

            categories.Add(new Category("Browsers",
                                        new Product(4, "FireFox"),
                                        new Product(5, "Chrome"),
                                        new Product(6, "Opera")));

            categories.Add(new Category("Game",
                                        new Product(7, "Need for Speed"),
                                        new Product(8, "Age of Empires"),
                                        new Product(9, "Road Rash")));
        }

           
    }
}
